package com.bwie.controller;

import com.bwie.pojo.R;
import com.bwie.service.DictService;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/dict")
@CrossOrigin
public class DictController {
    @Autowired
    private DictService dictService;
    @PostMapping("/getDictList")
    private R getDictList(@RequestBody String dictType){
        return dictService.getDictList(dictType);
    }
}
